/* 
 * File:   main.cpp
 * Author: Muhammad Anis
 *
 * Created on November 1, 2012, 5:24 PM
 */

#include <cstdlib>
#include "Calendar.h"

using namespace std;

/*
 * 
 */
int main(int argc, char** argv) {

    Calendar c;
    c.PrintInfo(argv);    
    char* args[2];    
    args[0] = "input.txt";
    args[1] = "input2.txt";
    try{
        c.LoadCalendar(args);
    }catch(WrongFormatException ex){
        ex.DisplayMessage();
    }catch(exception e){
        cout<<e.what()<<endl;
    }
    cout<<"--------------"<<endl;
    c.PrintInfo(argv);
    args[0] = "input.txt";
    args[1] = "input3.txt";
    c.SaveCalendar(args);
    return 0;
}

